import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'

/** Element-ui*/
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Element)

//style
import '@/assets/icons' // 图标
import '@/assets/style/index.less' // global css

/** echarts */
import * as echarts from 'echarts';

/** 自定义指令*/
import directive from '@/directive'
Vue.use(directive)

/** 全局组件挂载 */
import '@/components'

Vue.config.productionTip = false

/**全局方法挂载 */
import api from '@/api'
import http from "@/utils/http";
import config from "@/config/config";
import utils from "@/utils/utils";
import modal from "@/utils/modal";
import { Local, Session} from "@/utils/storage";


Vue.prototype.$A = api
Vue.prototype.$H = http
Vue.prototype.$U = utils
Vue.prototype.$C = config
Vue.prototype.$echarts = echarts;
Vue.prototype.$modal = modal;
Vue.prototype.$Local = Local;
Vue.prototype.$Session = Session;

Vue.prototype.resetForm = utils.resetForm
Vue.prototype.bus = new Vue();


new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})
